<!DOCTYPE html>
<html ng-app="protoApp">
<head>
    <title>Project Proto</title>
    <!--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
    -->
    <link rel="stylesheet" href="css/bootstrap.css">
    <link rel="stylesheet" href="css/bootstrap-theme.css">
    <!--<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
    -->
    <script type="text/javascript" src="js/angular.js"></script>
    <script type="text/javascript" src="js/angular-route.js"></script>
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/bootstrap.js"></script>

    <script type="text/javascript" src="js/apps.js"></script>
    <script type="text/javascript" src="js/controllers.js"></script>
</head>
<body>

    <div class="container-fluid" ng-controller="NavigationControl" style="padding: 1em; background-color: rgba(0,0,0,.1);">
        <ul class="nav navbar-nav">
            <li class="center-block" ng-repeat="item in menu"><a href="{{item.href}}">{{item.text}}</a> </li>
        </ul>
        <div class="pull-right text-center">
            <h1 class="pull-left" style="margin-right: 1em;">Project Proto</h1> <img src="images/gso-logo.png">
        </div>
    </div>

    <div ng-view></div>

    <!-- Modal Login-->
    <div ng-controller="LoginControl"  class="modal fade" id="loginModal" tabindex="-1" role="dialog" aria-labelledby="Login" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title" id="Login">Login</h4>
                </div>
                <div class="modal-body">
                    <form>
                        <div class="form-group">
                            <label for="username">Lehrerkürzel{{user}}</label>
                            <input class="form-control" type="text" id="username" ng-model="user">
                        </div>
                        <div class="form-group">
                            <label for="pass">Passwort</label>
                            <input class="form-control" type="password" id="pass" ng-model="pass">
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Abbrechen</button>
                    <button type="button" class="btn btn-primary" ng-click="tryLogin(user,pass)">Jetzt einloggen</button>
                </div>
            </div>
        </div>
    </div>

</body>
</html>